# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月19日
"""
from docx import Document


file = Document('./练习/08结果02.docx')
table1 = file.tables[0]

i = 0
for row in table1.rows:
	i = i + 1
	for cell in row.cells:
		print(f'第{i}行:', cell.text)

print(len(table1.rows),len(table1.columns))

# 表格删除
# file = Document('')
# table = file.tables[1]
# table._element.getparent().remove(table._element)
